<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>xCMS - 文档列表</title>
<link rel="stylesheet" media="screen" type="text/css" href="../css/main.css">
<style type="text/css">
@import url(../css/base.css);
@import url(../css/doc.css);
</style>
<script type="text/javascript" src="../js/commons/prototype.js"></script>
<script type="text/javascript" src="../js/commons/commons.js"></script>
<script type="text/javascript" src="../js/commons/jquery_xml.js"></script>
<script type="text/javascript" src="../js/cms/list_table.js"></script>
<script type="text/javascript" src="../js/cms/menu_tree.js"></script>
<script type="text/javascript" src="../js/cms/list_toolbar.js"></script>
<script type="text/javascript">

/**
 *
 **/
function doAction() {
	if(!window.parent.isAllLoaded) {
		return;
	}
	
	// 设置载入完成为假，防止重复运行
	window.parent.isAllLoaded = false;
	
	// 调用隐藏的frame的方法获取数据
	window.parent.frames["hide_frame"].hideAction();
	
	/**
	 * 下面部分为显示部分
	 **/
	document.getElementsByTagName("body")[0].style.display = "";
	
	var bodyHeight = document.body.clientHeight;
	var headerHeight = $("header").offsetHeight;
	var listMenuHeight = $("doc_list_right_menu").offsetHeight;
	
	var listHeight = bodyHeight - headerHeight - 30;
	$("doc_list_tree_menu").style.height = "" + listHeight + "px";
	$("doc_list_content").style.height = "" + (listHeight - listMenuHeight) + "px";
	
	var tableObj = $("doc_table_list_content");
	powerhua.cms._list_table(tableObj, d);
	powerhua.cms._list_table_style(tableObj, ds);
	powerhua.cms._actionEvent(tableObj);
	
	/**
	 *
	 **/
	buildMenuTree(menuTreeStr);
	
	initListToolbarPopupMenu();
}

/**
 * 当页面载入后调用
 **/
function init() {
	window.setInterval("doAction()",20);
}

// 设置页面的onload事件
window.onload = init;

</script>
</head>

<body style="display:none">
<div id="header">
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top">&nbsp;</td>
    <td align="right" valign="top">&nbsp;</td>
  </tr>
</table>
<div id="header_menu" style="border-bottom:solid 4px #67A7E3;">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="200">&nbsp;</td>
    <td class="menu_selected_left">文档管理</td>
    <td class="menu_selected_right">&nbsp;</td><!-- 
    <td class="menu_not_selected_left">工作流</td>
    <td class="menu_not_selected_right">&nbsp;</td>
	<td class="menu_not_selected_left">人力资源</td>
    <td class="menu_not_selected_right">&nbsp;</td>
	<td class="menu_not_selected_left">费用管理</td>
    <td class="menu_not_selected_right">&nbsp;</td> -->
  </tr>
</table>
</div>
<div id="header_menu_sub">
<table id="toolbar_table" border="0" cellspacing="0" cellpadding="0">
	<tr>
	<td><div id="toolbar_item_new_bg" class="toolbar_item_bg"><div class="toolbar_item_tl"><div class="toolbar_item_tr"><div class="toolbar_item_bl"><div class="toolbar_item_br">
	<div id="toolbar_item_new" class="toolbar_item_content"><img style="vertical-align:bottom" src="../images/docs/icon_itemsnotinfolders.gif"/> 
	新建 <img src="../images/docs/icon-dropdn.gif"/></div></div></div></div></div></div></td>
	<td><div class="toolbar_item_content"><img style="vertical-align:bottom" src="../images/docs/tool_upload.gif"/> 
	上传</div></td>
	<td><div class="toolbar_item_content"><img style="vertical-align:bottom" src="../images/docs/trash.gif"/> 
	删除</div></td>
	<td>
	<div id="toolbar_item_folder_bg" class="toolbar_item_bg"><div class="toolbar_item_tl"><div class="toolbar_item_tr"><div class="toolbar_item_bl"><div class="toolbar_item_br">
	<div id="toolbar_item_folder" class="toolbar_item_content"><img style="vertical-align:bottom" src="../images/docs/tool_putinfolder_blue.gif"/> 
	文件夹操作 <img src="../images/docs/icon-dropdn.gif"/></div>
	</div></div></div></div></div>
	</td>
	<td><div class="toolbar_item_content"><img style="vertical-align:bottom" src="../images/docs/tool_removefromfolder.gif"/> 
	从文件夹中移除</div></td>
	<td><div class="toolbar_item_content">更多操作 <img src="../images/docs/icon-dropdn.gif"/></div></td>
	<td><div class="toolbar_item_content">搜索 
	<input type="text" name="search_key" value="" style="border:1px solid #aaa;"/>
	<input type="button" name="search" value=">" style="border:1px solid #aaa;"/></div>
	</td>
	</tr>
</table>
</div>
</div>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="220" valign="top">
	<div id="doc_list_tree_menu">
	<!-- 
	<div class="doc_list_tree_menu_level1">
		<img src="../images/docs/button_plus_small.gif"/>&nbsp; 
		<img class="doc_list_tree_menu_img" src="../images/docs/alldocs.gif"/>&nbsp; 
		所有文件
	</div>
	<div>
		<div class="doc_list_tree_menu_level2">
			<img class="doc_list_tree_menu_img" src="../images/docs/icon_pencilandpad.gif"/>&nbsp; 
			我的文件
		</div>
		<div class="doc_list_tree_menu_level2">
			<img class="doc_list_tree_menu_img" src="../images/docs/star_on_unselected.gif"/>&nbsp; 
			星号标识文件
		</div>
		<div class="doc_list_tree_menu_level2">
			<img class="doc_list_tree_menu_img" src="../images/docs/trash.gif"/>&nbsp; 
			回收站
		</div>
	</div>
	
	<div class="doc_list_tree_menu_level1">
		<img src="../images/docs/button_plus_small.gif"/>&nbsp; 
		<img class="doc_list_tree_menu_img" src="../images/docs/icon_folders.gif"/>&nbsp; 
		文件夹
	</div>
	<div>
		<div class="doc_list_tree_menu_level2">
			<img class="doc_list_tree_menu_img" src="../images/docs/icon_itemsnotinfolders.gif"/>&nbsp; 
			不在文件夹中的文件
		</div>
	</div>
	
	<div class="doc_list_tree_menu_level1">
		<img src="../images/docs/button_plus_small.gif"/>&nbsp; 
		<img class="doc_list_tree_menu_img" src="../images/docs/glass_large.gif"/>&nbsp; 
		自定义
	</div>
	-->
	</div>
	</td>
    <td valign="top">
	<div id="doc_list_right_menu">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="100" align="right" valign="top">
				<img src="../images/icon_2_folder_large.gif" alt="1" width="36" height="30" style="margin:8px 4px 0 0;"></td>
                <td>
				<div style="padding:5px;">
                    <input type="text" name="docName" class="input_category_title" value="未命名文件夹">
                  </div>
                    <div style="padding:2px 5px 10px 5px;">
                      <input type="text" name="docDesc" class="input_category_desc" value="添加描述/状态">
                  </div>
				</td>
              </tr>
          </table></td>
          </tr>
      </table>
      <!-- 
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="bottom"><table border="0" cellspacing="0" cellpadding="0" style="margin-top:3px;">
              <tr>
                <td width="100">&nbsp;</td>
                <td class="menu_sub_selected_left"> 内容 </td>
                <td class="menu_sub_selected_right">&nbsp;</td>
                <td width="2">&nbsp;</td>
                <td class="menu_sub_not_selected_left">文件夹操作 <img src="../images/docs/icon-dropdn.gif"/></td>
                <td width="2">&nbsp;</td>
                <td class="menu_sub_not_selected_left">添加 <img src="../images/docs/icon-dropdn.gif"/></td>
                <td width="2">&nbsp;</td>
                <td class="menu_sub_not_selected_left">删除文件</td>
                <td width="2">&nbsp;</td>
              </tr>
          </table></td>
          </tr>
      </table>
      -->
	<table width="100%" border="0" cellspacing="0" cellpadding="2">
      <tr>
        <td width="20" class="table_header_td">
          &nbsp;
        </td>
        <td width="20" class="table_header_td" align="center">&nbsp;<!-- <img src="../images/docs/star_off_unselected.gif"/>--></td>
        <td class="table_header_td">名称</td>
        <td width="200" class="table_header_td">文件夹</td>
        <td width="100" class="table_header_td">作者</td>
        <td width="120" class="table_header_td">时间</td>
        </tr>
    </table>
	</div>
	<div id="doc_list_content" style="height:300px;">
	<table id="doc_table_list_content" width="100%" border="0" cellspacing="0" cellpadding="2">
	<TBODY>
      <TR><TD></TD></TR>
    </TBODY>
    </table>
	</div>
	</td>
  </tr>
  <tr><td>&nbsp;</td>
  <td>
  <table width="100%" border="0" cellpadding="0" cellspacing="4">
  <tr>
  <td>选择：<span onclick="selectAllContents()" style="color:#0000CC;cursor:pointer">全选</span>
  &nbsp;<span onclick="unSelectAllContents()"  style="color:#0000CC;cursor:pointer">不选</span></td>
  <td width="200" align="right">分页</td>
  </tr>
  </table>
  </td></tr>
</table>

</body>
</html>